import serve from "../index.js";

// 注册登录
export function register(username, password, vercode) {
  return serve({
    methods: "POST",
    url: `/user/reg?username=${username}&password=${password}&vercode=${vercode}`,
  });
}

// 发送验证码
export function getVeri(params) {
  return serve({
    method: "POST",
    url: `/user/sendSms`,
    data: params,
  });
}

// 密码登录
export function getSignIn(username, password) {
  return serve({
    method: "POST",
    url: `user/login?username=${username}&password=${password}`,
  });
}
